package com.chenyue.cm.moudules.system.service;

import com.chenyue.cm.base.service.BaseServiceIface;
import com.chenyue.cm.bean.Success;
import com.chenyue.cm.system.domain.SysUsers;

/**
 * @author zhaojie
 * @Title: SysUsersService
 * @ProjectName ROOT
 * @Description: TODO
 * @date 2018/11/1415:59
 */
public interface SysUsersService extends BaseServiceIface<SysUsers> {
    /**
     * 通过账号名称获取用户
     *
     * @param username
     * @return
     */
    SysUsers selectByUsername(String username);

    /**
     * 修改密码
     *
     * @param password
     * @param newPassWord
     * @return
     */
    Success updatePassWord(String password, String newPassWord);
}
